package com.learn.hibernatevalidator.chapter02.containerelement.set;

import java.util.HashSet;
import java.util.Set;

/**
 * @author: liyf
 * @create: 2024-12-19 22:14
 **/
public class Car {

    private Set<@ValidPart(message = "不能包含 null") String> parts = new HashSet<>();

    public void addPart(String part) {
        parts.add(part);
    }
}
